package com.interview.select;

public class DemoTwelve  extends Thread {
        private int x = 2;
        public static void main(String[] args) throws Exception {
            new DemoTwelve().makeItSo();
        }
        public DemoTwelve(){
            x = 4;
            start();
            System.out.println(x);
        }
        public void makeItSo() throws Exception {
            join();
            x = x - 1;
            System.out.println(x);       }

        public void run() { x *= 2; }

    }


